/* eslint-disable */
import React from "react";
import { RouterProvider } from "react-router-dom";
import router from './router';

function App() {
  const [data, setData] = React.useState(null);
  const [loading, setLoading] = React.useState(true);

  React.useEffect(() => {
    const token = localStorage.getItem('token'); // 获取 JWT token
    console.log('JWT Token:', token); // 调试信息

    if (!token) {
      setLoading(false);
      return;
    }
  }, []);

  return (
    <div className="App">
      <RouterProvider router={router} />
    </div>
  );
}

export default App;